import Observer from "./Observer";
//使包含嵌套属性的object转换为支持深响应的对象
export default function observe(value) {
    if (typeof value != 'object') return
    var ob;
    if (typeof value.__ob__ !== 'undefined') {
        ob = value.__ob__
    } else {
        ob = new Observer(value)
    }
    return ob
}